import request from '@/utils/request.ts'
import type {loginType} from './type.ts'
enum API {
    LOGIN_URL = '/user/login',
    USER_INFO_URL = '/user/info'
}
export const reqLogin = (data:loginType) =>{
    return  request.post(API.LOGIN_URL,data)
}
export const reqUserInfo = () => {
    return  request.get(API.USER_INFO_URL)
}